<?php 
	global $router;
	function ActiveMenu($id) {
		$router = new Router();
		echo ($router->id == $id ? "-active" : "");
	}
?>

<li class="product-1-z<?php ActiveMenu("z3"); ?>"><a href="<?php echo $router->lang; ?>/game/z3"><span></span></a></li>
<li class="product-2-z<?php ActiveMenu("z5"); ?>"><a href="<?php echo $router->lang; ?>/game/z5"><span></span></a></li>
<li class="product-3-z<?php ActiveMenu("z8"); ?>"><a href="<?php echo $router->lang; ?>/game/z8"><span></span></a></li>